<template>
    <el-scrollbar height="300px">
        <el-checkbox-group v-model="model" size="small">
            <el-checkbox v-for="(item, index) in data" :label="item.name" :value="item.id" border />
        </el-checkbox-group>
    </el-scrollbar>
</template>

<script setup>

const model = defineModel({
    type: Array,
    required: true,
})
const props = defineProps({
    data: {
        type: Array,
        required: true
    }
})


</script>

<style lang='scss' scoped></style>